import request from '@/utils/request'

// 查询小区列表
export function listCommunityB(query) {
  return request({
    url: '/communityA/communityB/list',
    method: 'get',
    params: query
  })
}

// 查询小区详细
export function getCommunityB(id) {
  return request({
    url: '/communityA/communityB/' + id,
    method: 'get'
  })
}

// 新增小区
export function addCommunityB(data) {
  return request({
    url: '/communityA/communityB',
    method: 'post',
    data: data
  })
}

// 修改小区
export function updateCommunityB(data) {
  return request({
    url: '/communityA/communityB',
    method: 'put',
    data: data
  })
}

// 删除小区
export function delCommunityB(id) {
  return request({
    url: '/communityA/communityB/' + id,
    method: 'delete'
  })
}
